// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import settings from './settings' //将settings.js导入settings对象
Vue.config.productionTip = false

Vue.prototype.$settings = settings //将settings复制给Vue的原型属性$settings
//这样配置后就可以在任何地方通过this.$settings访问到settings对象

//引入element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
//调用插件,就可以直接使用element-ui的样式
Vue.use(ElementUI)

//导入css初始化样式
import "../static/css/reset.css"

//引入axios
import axios from 'axios'
axios.defaults.withCredentials = false  //false表示禁止ajax附带cookie
Vue.prototype.$axios = axios;    //将axios挂载到vue中，就可以全局使用

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
